//
//  UserFollow.h
//  XPhoto
//
//  Created by baboy on 2019/8/9.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "User.h"
#import "SearchArgs.h"
NS_ASSUME_NONNULL_BEGIN

#define API_FRIENDSHIP_FOLLOW_SEARCH        @"friendship_follow_search"
#define API_FRIENDSHIP_FAN_SEARCH           @"friendship_fan_search"

#define API_FRIENDSHIP_FOLLOW               @"friendship_follow"
#define API_FRIENDSHIP_UNFOLLOW             @"friendship_unfollow"

@class UserFollowSearchArgs;

@interface UserFollow : Model
@property(nonatomic, assign) NSInteger id;
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, assign) NSInteger followUid;
@property(nonatomic, strong) NSDate *createTime;
@property(nonatomic, assign) Boolean friend;
@property(nonatomic, assign) Boolean verified;
@property(nonatomic, strong) User *user;

+ (id)searchFans:(UserFollowSearchArgs *)args callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;
+ (id)searchFollows:(UserFollowSearchArgs *)args callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;


+ (id)addFollow:(NSInteger)followUid callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;

+ (id)removeFollow:(NSInteger)followUid callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;


@end

@interface UserFollowSearchArgs : SearchArgs
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, assign) NSInteger maxId;
@end

NS_ASSUME_NONNULL_END
